<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>列表管理</title>
    <link rel="stylesheet" href="/static/component/pear/css/pear.css"/>
    <link rel="stylesheet" href="/static/component/markdown/editor/editormd.min.css" />
    <script src="/static/component/layui/layui.js"></script>
    <script src="/static/component/pear/pear.js"></script>
    <script src="/static/component/pear/module/ruinuo/sortable.js"></script>
    <script src="/static/component/pear/module/ruinuo/xm-select.js"></script>
</head>
<body>

<div class="view_body"></div>
<script type="text/html" id="view_body_data">
    <form class="layui-form" action="">
        <div class="mainBox ruinuo_box {{= form_config.form_label}}">
            <div class="main-container layui-row layui-col-space10 label_con">
                <fieldset class="design-box layui-elem-field layui-field-title layui-col-xs12"><legend class="tips_legend">基础设置</legend></fieldset>
<div class="design-box layui-col-xs12 layui-col-md3 mode_id_box {{#  if(layui.engine_form.PowerField('mode_id')==1){ }}form_disabled{{#  } }}">
<label class="layui-form-label layui-form-item-required">所属控制器</label>
<div class="layui-input-block " data_tag="select" data_source="mode_list">
<select name="mode_id" lay-filter="select_filter" lay-search=""><option value="">请选择</option>
{{- layui.engine_form.SelectOption(d.source.mode_list.rows,d.detail.mode_id)}}</select>
</div>
</div>
<div class="design-box layui-col-xs12 layui-col-md3 name_box {{#  if(layui.engine_form.PowerField('name')==1){ }}form_disabled{{#  } }}">
<label class="layui-form-label layui-form-item-required">名称</label>
<div class="layui-input-block " data_tag="input" data_source="">
<input  name="name" id="focus_2744_1713179624512_88317" type="text" lay-tag="input" autocomplete="off"  value="{{= d.detail.name}}" class="layui-input">
</div>
</div>
<div class="design-box layui-col-xs12 layui-col-md3 page_num_box {{#  if(layui.engine_form.PowerField('page_num')==1){ }}form_disabled{{#  } }}">
<label class="layui-form-label layui-form-item-required">每页显示数量</label>
<div class="layui-input-block " data_tag="input" data_source="">
<input  name="page_num" id="focus_68fd_1713179653524_24521" type="text" lay-tag="input" autocomplete="off"  value="{{= d.detail.page_num}}" class="layui-input">
</div>
</div>
<div class="design-box layui-col-xs12 layui-col-md3 order_raw_box {{#  if(layui.engine_form.PowerField('order_raw')==1){ }}form_disabled{{#  } }}">
<label class="layui-form-label layui-form-item-required">数据排序规则</label>
<div class="layui-input-block " data_tag="input" data_source="">
<input  name="order_raw" id="focus_1c23_1713179713538_65090" type="text" lay-tag="input" autocomplete="off"  value="{{= d.detail.order_raw}}" class="layui-input">
</div>
</div>
<div class="design-box layui-col-xs12 layui-col-md3 style_box {{#  if(layui.engine_form.PowerField('style')==1){ }}form_disabled{{#  } }}">
<label class="layui-form-label layui-form-item-required">风格</label>
<div class="layui-input-block " data_tag="select" data_source="lists_style">
<select name="style" lay-filter="select_filter" lay-search=""><option value="">请选择</option>
{{- layui.engine_form.SelectOption(d.source.lists_style.rows,d.detail.style)}}</select>
</div>
</div>
<div class="design-box layui-col-xs12 layui-col-md3 tree_field_box {{#  if(layui.engine_form.PowerField('tree_field')==1){ }}form_disabled{{#  } }}">
<label class="layui-form-label">树形字段</label>
<div class="layui-input-block " data_tag="input" data_source="">
<input  name="tree_field" id="focus_27f9_1713179946460_13169" type="text" lay-tag="input" autocomplete="off"  value="{{= d.detail.tree_field}}" class="layui-input">
</div>
</div>
<div class="design-box layui-col-xs12 layui-col-md3 tree_show_field_box {{#  if(layui.engine_form.PowerField('tree_show_field')==1){ }}form_disabled{{#  } }}">
<label class="layui-form-label">树形显示字段</label>
<div class="layui-input-block " data_tag="input" data_source="">
<input  name="tree_show_field" id="focus_22a6_1713750542045_84650" type="text" lay-tag="input" autocomplete="off"  value="{{= d.detail.tree_show_field}}" class="layui-input">
</div>
</div>
<div class="design-box layui-col-xs12 layui-col-md3 sort_box {{#  if(layui.engine_form.PowerField('sort')==1){ }}form_disabled{{#  } }}">
<label class="layui-form-label layui-form-item-required">排序</label>
<div class="layui-input-block " data_tag="input" data_source="">
<input  name="sort" id="focus_3ff8_1713180019465_22620" type="text" lay-tag="input" autocomplete="off"  value="{{= d.detail.sort}}" class="layui-input">
</div>
</div>
<div class="design-box layui-col-xs12 layui-col-md12 ruinuo_yes_none num_box {{#  if(layui.engine_form.PowerField('num')==1){ }}form_disabled{{#  } }}">
<label class="layui-form-label">编码</label>
<div class="layui-input-block " data_tag="ordernum" data_source="">
<input  name="num" id="focus_74f3_1713240981292_30250" type="text" readonly lay-tag="ordernum" autocomplete="off"  value="{{= d.detail.num}}" class="layui-input">
</div>
</div>
<fieldset class="design-box layui-elem-field layui-field-title layui-col-xs12"><legend class="tips_legend">数据权限</legend></fieldset>
<div class="design-box layui-col-xs12 layui-col-md12 power_field_box {{#  if(layui.engine_form.PowerField('power_field')==1){ }}form_disabled{{#  } }}">
<label class="layui-form-label">权限字段</label>
<div class="layui-input-block " data_tag="jsontable" data_source="">
<textarea name="power_field" id="focus_4031_1713228895830_52445" class="layui-input" style="display: none"  lay-filter="json_filter">{{= d.detail.power_field}}</textarea>
<div class="table_4031_1713228895830_52445 f_table">
<table id="table_4031_1713228895830_52445" lay-filter="filter_4031_1713228895830_52445"></table>
</div>
</div>
</div>
<div class="design-box layui-col-xs12 layui-col-md12 power_role_box {{#  if(layui.engine_form.PowerField('power_role')==1){ }}form_disabled{{#  } }}">
<label class="layui-form-label">通用角色权限</label>
<div class="layui-input-block " data_tag="select" data_source="admin_role">
<div  name="power_role" id="focus_9781_1713179834545_35095" type="text" lay-tag="select"></div>
</div>
</div>
<div class="design-box layui-col-xs12 layui-col-md12 power_department_box {{#  if(layui.engine_form.PowerField('power_department')==1){ }}form_disabled{{#  } }}">
<label class="layui-form-label">通用部门权限</label>
<div class="layui-input-block " data_tag="select" data_source="department_list">
<div  name="power_department" id="focus_17ea_1714029324244_50949" type="text" lay-tag="select"></div>
</div>
</div>
<div class="design-box layui-col-xs12 layui-col-md12 set_where_box {{#  if(layui.engine_form.PowerField('set_where')==1){ }}form_disabled{{#  } }}">
<label class="layui-form-label">查询条件</label>
<div class="layui-input-block " data_tag="textarea" data_source="">
<textarea  name="set_where" id="focus_2a13_1713179783175_63488" type="textarea" placeholder="填写sql语句，不懂的就不要乱填" lay-tag="textarea" autocomplete="off" class="layui-textarea" style="min-height: 100px;">{{= d.detail.set_where}}</textarea></div>
</div>
<fieldset class="design-box layui-elem-field layui-field-title layui-col-xs12"><legend class="tips_legend">左侧设置</legend></fieldset>
<div class="design-box layui-col-xs12 layui-col-md3 is_left_box {{#  if(layui.engine_form.PowerField('is_left')==1){ }}form_disabled{{#  } }}">
<label class="layui-form-label layui-form-item-required">开启左侧</label>
<div class="layui-input-block " data_tag="select" data_source="yesno">
<select name="is_left" lay-filter="select_filter" lay-search=""><option value="">请选择</option>
{{- layui.engine_form.SelectOption(d.source.yesno.rows,d.detail.is_left)}}</select>
</div>
</div>
<div class="design-box layui-col-xs12 layui-col-md3 left_title_box {{#  if(layui.engine_form.PowerField('left_title')==1){ }}form_disabled{{#  } }}">
<label class="layui-form-label">左侧标题</label>
<div class="layui-input-block " data_tag="input" data_source="">
<input  name="left_title" id="focus_8919_1713180190309_12933" type="text" lay-tag="input" autocomplete="off"  value="{{= d.detail.left_title}}" class="layui-input">
</div>
</div>
<div class="design-box layui-col-xs12 layui-col-md3 left_type_box {{#  if(layui.engine_form.PowerField('left_type')==1){ }}form_disabled{{#  } }}">
<label class="layui-form-label">关联方式</label>
<div class="layui-input-block " data_tag="select" data_source="left_type">
<select name="left_type" lay-filter="select_filter" lay-search=""><option value="">请选择</option>
{{- layui.engine_form.SelectOption(d.source.left_type.rows,d.detail.left_type)}}</select>
</div>
</div>
<div class="design-box layui-col-xs12 layui-col-md3 left_options_box {{#  if(layui.engine_form.PowerField('left_options')==1){ }}form_disabled{{#  } }}">
<label class="layui-form-label">关联数据源</label>
<div class="layui-input-block " data_tag="select" data_source="options_list">
<select name="left_options" lay-filter="select_filter" lay-search=""><option value="">请选择</option>
{{- layui.engine_form.SelectOption(d.source.options_list.rows,d.detail.left_options)}}</select>
</div>
</div>
<div class="design-box layui-col-xs12 layui-col-md3 left_mode_box {{#  if(layui.engine_form.PowerField('left_mode')==1){ }}form_disabled{{#  } }}">
<label class="layui-form-label">关联模块</label>
<div class="layui-input-block " data_tag="select" data_source="mode_list">
<select name="left_mode" lay-filter="select_filter" lay-search=""><option value="">请选择</option>
{{- layui.engine_form.SelectOption(d.source.mode_list.rows,d.detail.left_mode)}}</select>
</div>
</div>
<div class="design-box layui-col-xs12 layui-col-md3 left_key_field_box {{#  if(layui.engine_form.PowerField('left_key_field')==1){ }}form_disabled{{#  } }}">
<label class="layui-form-label">主键字段</label>
<div class="layui-input-block " data_tag="input" data_source="">
<input  name="left_key_field" id="focus_3441_1713180187457_39252" type="text" lay-tag="input" autocomplete="off"  value="{{= d.detail.left_key_field}}" class="layui-input">
</div>
</div>
<div class="design-box layui-col-xs12 layui-col-md3 left_show_field_box {{#  if(layui.engine_form.PowerField('left_show_field')==1){ }}form_disabled{{#  } }}">
<label class="layui-form-label">显示字段</label>
<div class="layui-input-block " data_tag="input" data_source="">
<input  name="left_show_field" id="focus_901b_1713180226162_59466" type="text" lay-tag="input" autocomplete="off"  value="{{= d.detail.left_show_field}}" class="layui-input">
</div>
</div>
<div class="design-box layui-col-xs12 layui-col-md3 left_field_box {{#  if(layui.engine_form.PowerField('left_field')==1){ }}form_disabled{{#  } }}">
<label class="layui-form-label">关联字段</label>
<div class="layui-input-block " data_tag="input" data_source="">
<input  name="left_field" id="focus_8c43_1713180184648_03647" type="text" lay-tag="input" autocomplete="off"  value="{{= d.detail.left_field}}" class="layui-input">
</div>
</div>

            </div>
        </div>
        <div class="bottom">
            <div class="ruinuo-button-con">
                <button type="button" class="pear-btn pear-btn-primary" onclick="SendForm()">
                    <i class="layui-icon layui-icon-ok"></i>提交
                </button>
                <button type="reset" class="pear-btn">
                    <i class="layui-icon layui-icon-refresh"></i>重置
                </button>
            </div>
        </div>
    </form>
</script>
<script>

    function FormBind()
    {
        let tablepower_field={"col":"12","tag":"jsontable","cols":[{"field":"field","title":"权限字段","update":"input","minWidth":160,"required":2},{"field":"is_path","title":"允许上级查看","update":"switch","minWidth":160}],"help":"","hide":"2","field":"power_field","title":"权限字段","value":"","elem_id":"4031_1713228895830_52445","required":"2","hide_label":"2"};
layui.engine_form.BindJsonTable(tablepower_field);
layui.engine_form.BindSelect('9781_1713179834545_35095','select','power_role','admin_role',1,);
layui.engine_form.BindSelect('17ea_1714029324244_50949','select','power_department','department_list',1,);

    }
</script>
<script src="/static/js/ruinuo/lists/config.js?t={:time()}"></script>
<script src="/static/component/markdown/editor/editormd.min.js"></script>
<script src="/static/js/ruinuo/lists/form.js?t={:time()}"></script>
<script src="/static/component/pear/module/jQuery.print.js"></script>
</body>
</html>